package com.jia.train.batch.controller;

import com.jia.train.batch.feign.TrainSeatFeignClient;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {

    @Resource
    private TrainSeatFeignClient trainSeatFeignClient;

    @GetMapping("/index")
    public String index() {
        System.out.println(trainSeatFeignClient.index());
        return "index";
    }

}
